package com.example.Holo.library.viewfinder;

import android.app.Activity;
import android.widget.*;

public final class ActivityViewFinder implements IViewFinder {

    private final Activity activity;

    public ActivityViewFinder(Activity activity) {
        this.activity = activity;
    }

    @Override
    public Button findButton(int id) {
        return (Button) activity.findViewById(id);
    }

    @Override
    public EditText findEditText(int id) {
        return (EditText) activity.findViewById(id);
    }

    @Override
    public ListView findListView(int id) {
        return (ListView) activity.findViewById(id);
    }

    @Override
    public Spinner findSpinner(int id) {
        return (Spinner) activity.findViewById(id);
    }

    @Override
    public TextView findTextView(int id) {
        return (TextView) activity.findViewById(id);
    }

}
